Java Smart Ticket Demo Application Scrutinized

نویسندگان

  • Dominik Gruntz
  • René Müller
چکیده

For the Java component model J2EE, Sun has published guidelines which show how to use their technology effectively to create enterprise applications. These guidelines are illustrated in the two example enterprise application blueprints Pet Store and Smart Ticket. Since our group is working on a wireless project, we investigated the Smart Ticket demo application. This paper describes our experiences until we had the application running on real Java cell phones and shows weaknesses and bugs in the demo application. 1 Wireless Enterprise Applications The Smart Ticket is a sample application which illustrates the guidelines to build J2EE applications. The sample application allows users to buy movie tickets through a mobile device such as a cell phone. Users can select a movie, choose a movie theater, a show-time, select one or more seats and then purchase the tickets. Figure 1 shows a seating plan where three seats in the first row have been selected. The demo application is available from Sun on the Web [1, 2]. Fig. 1. Seating Plan In our group, we are working on a similar project. The idea is to purchase tickets for parking lots via cell phones. Our server can either be accessed through a Java cell phone (as in the Smart Ticket sample application) or through a SMS 2 Dominik Gruntz and René Müller or USSD gateway. The reservation may also be forwarded to the parking ticket machine which prints a ticket [3]. As we wanted to apply the J2EE infrastructure appropriately, we carefully studied the Smart Ticket blueprint application (version 1.1.1) and installed it on several application servers. It was very instructive to see how the J2EE design patterns are applied in practice. While studying the code of the Smart Ticket application we also found (and fixed) some bugs which was very instructive too. The goal of this paper is to share our experiences and to point out potential pitfalls programmers may face with enterprise applications. However we want to emphasize that we consider the blueprint initiative (and the Smart Ticket application) as very valuable, although the critical remarks may outweigh the positive ones in this paper. We hope, that our comments help to improve the application and that the readers can also benefit from the problems discussed. We also installed the midlet part of the Smart Ticket application on real Java cell phones (Siemens SL45i, Nokia 3410, and Motorola Accompli 008). The application did not run on those three cell phones right away. Regardless of these experiences, we worked around the problems these cell phones still have. The application is now running reasonably on the Siemens SL45i and on the Accompli 008, but memory restrictions of the cell phones are still the most limiting factor. The paper is organized as follows. In chapter 2 we describe the architecture of the Smart Ticket application, and in chapters 3 and 4 we describe the server part in more detail and discuss the encountered problems. Chapter 5 describes the problems we met when we installed the client part on real cell phones and the workarounds we used. The last chapter contains our concluding remarks. 2 Architecture of the Smart Ticket Demo Application The Smart Ticket application is designed as a multi-tier architecture (see Figure 2) and follows the MVC pattern. The business logic is implemented in EJBs on top of the database. The EJBs are accessed from a servlet which accepts requests from MIDP clients over HTTP. The MIDP client is responsible for the data presentation. The client tier consists of a MIDP/CLDC application providing the user interface. The data is presented in forms, lists or on canvas objects and the application state is controlled with a state machine. Personal preferences (like user name, password) and all messages of a particular locale setting (internationalization support) are stored in record stores on the cell phone. The web tier handles the HTTP POST requests from the midlet. A simple message format is used to specify the commands. The web tier is also responsible for the session management. Sessions are controlled with a session listener. 1 Btw, we can completely agree with a quote by Lars Bak (Sun microsystems). At his presentation at JavaOne 2002 he emphasized that ”we work on things that you can throw against the wall.” Java Smart Ticket Demo Application Scrutinized 3

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

JOBS: Javacard-based Online-ticket Booking System

It is expected that the next generation of smart card will be more intelligent, more interactive and more interoperable. We call these the 3i requirements. A smart card wallet system for meeting these 3i requirements is presented. A novel objectoriented framework is proposed, such that everything is stored in the smart card wallet as an object and the extensible markup language (XML) is employe...

متن کامل

Server-Supported Internationalization of Wireless Java Applications

Mobile devices, more so than desktop computers, are used throughout the world. By internationalizing and localizing its content, a mobile application can provide the best experience for the widest possible audience. This paper describes how to internationalize and localize Java technologybased wireless enterprise applications. Although the constraints of mobile devices make internationalization...

متن کامل

End user tool for deploying smart object systems

We present a deployment tool atop a document centric infrastructure to support end users in constructing and extending smart object systems. This tool allows an ordinary individuals to deploy, extend and control smart object systems in a Do-It-Yourself (DIY) fashion. We have implemented two versions of this tool using different user interfaces. The first version provides a graphical user interf...

متن کامل

W2000 meets J2ME for the Fast Prototyping of Mobile Web Applications

Mobile devices are motivating a new family of Web applications. Limited sources, like displays, mice, keyboards, and memory, heavily impact the client-side capabilities of the application. This is why mobile Web applications must be re-modeled to take into account the peculiarities of the new devices. This paper does not propose yet another “general purpose” modeling framework and does not even...

متن کامل

General-purpose Digital Ticket Framework

A digital ticket is a certificate that guarantees certain rights of the ticket owner. There are many applications for digital tickets but the ticket properties vary depending on the application. This variety makes the digital ticket processing system expensive, especially if dedicated systems must be developed for each application. This paper thus addresses issues on developing a common data sc...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002